using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DataLayer.Entities
{
    [Table("Category")]
    public partial class Category
    {
        public Category()
        {
            Category1 = new HashSet<Category>();
            Products = new HashSet<Product>();
        }

        public long CategoryId { get; set; }

        public long ParentId { get; set; }

        [StringLength(100)]
        public string CategoryName { get; set; }

        public long? CreatedBy { get; set; }

        public DateTime? CreatedDate { get; set; }

        public long? ModifiedBy { get; set; }

        public DateTime? ModifiedDate { get; set; }

        public virtual ICollection<Category> Category1 { get; set; }

        public virtual Category Category2 { get; set; }

        public virtual ICollection<Product> Products { get; set; }
    }
}
